<script>
	import Vue from "vue"
	export default {
		onLaunch: function() {
			
			uni.getSystemInfo({
				success: function(e) {
			
					Vue.prototype.statusBar = e.statusBarHeight
			
					// #ifndef MP
					if (e.platform == 'android') {
						Vue.prototype.customBar = e.statusBarHeight + 50
					} else {
						Vue.prototype.customBar = e.statusBarHeight + 45
					}
					// #endif
			
					// #ifdef MP-WEIXIN
					let custom = wx.getMenuButtonBoundingClientRect()
					Vue.prototype.customBar = custom.bottom + custom.top - e.statusBarHeight
					// #endif
			
					// #ifdef MP-ALIPAY
					Vue.prototype.customBar = e.statusBarHeight + e.titleBarHeight
					// #endif
			
					Vue.prototype.menuButtonWidth = custom.width + (e.windowWidth - custom
						.right); //胶囊按钮的宽度 = 按钮宽度 + （屏幕宽度 - 按钮距离右边的距离）
			
				}
			});
			
		},
		onShow: function() {
		},
		onHide: function() {
		}
	}
</script>

<style>
	page{
		height: 100%;
	}
	
	/*每个页面公共css */
</style>
